// 系统总览
const abalysis = () => import('@/views/main/analysis/index.vue')
const overview = () => import('@/views/main/analysis/overview/overview.vue')
const abshboard = () => import('@/views/main/analysis/abshboard/abshboard.vue')

// 系统管理
const system = () => import('@/views/main/system/index.vue')
const user = () => import('@/views/main/system/user/user.vue')
const department = () => import('@/views/main/system/department/department.vue')
const menu = () => import('@/views/main/system/menu/menu.vue')
const role = () => import('@/views/main/system/role/role.vue')
// 商品中心
const product = () => import('@/views/main/product/index.vue')
const category = () => import('@/views/main/product/category/category.vue')
const goods = () => import('@/views/main/product/goods/goods.vue')
// 随便聊聊
const story = () => import('@/views/main/story/index.vue')
const chat = () => import('@/views/main/story/chat/chat.vue')
const list = () => import('@/views/main/story/list/list.vue')

const localRouter = [
  {
    path: 'analysis',
    name: 'analysis',
    component: abalysis,
    meta:{
      title: '系统总览'
    },
    children: [
      {
        path: 'overview',
        name: 'overview',
        meta:{
          title: '核心技术'
        },
        component: overview
      },
      {
        path: 'abshboard',
        name: 'abshboard',
        meta:{
          title: '商品统计'
        },
        component: abshboard
      }
    ]
  },
  {
    path: 'system',
    name: 'system',
    component: system,
    meta:{
      title: '系统管理'
    },
    children:[
      {
        path: 'user',
        name: 'user',
        meta:{
          title: '用户管理'
        },
        component: user
      },
      {
        path:"department",
        name:"department",
        meta:{
          title: '部门管理'
        },
        component: department
      },
      {
        path:"menu",
        name:"menu",
        meta:{
          title: '菜单管理'
        },
        component: menu
      },
      {
        path:"role",
        name:"role",
        meta:{
          title: '角色管理'
        },
        component: role
      }
    ]
  },
  {
    path:"product",
    name:"product",
    meta:{
      title: '商品中心'
    },
    component: product,
    children:[
      {
        path:"category",
        name:"category",
        meta:{
          title: '商品类别'
        },
        component:category
      },
      {
        path:"goods",
        name:"goods",
        meta:{
          title: '商品信息'
        },
        component:goods
      }
    ]
  },
  {
    path:"story",
    name:"story",
    meta:{
      title: '随便聊聊'
    },
    component: story,
    children:[
      {
        path:"chat",
        name:"chat",
        meta:{
          title: '你的故事'
        },
        component:chat
      },
      {
        path:"list",
        name:"list",
        meta:{
          title: '故事列表'
        },
        component:list
      }
    ]
  }
]


export default localRouter